<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
		var num = prompt("请输入一段整数");
          for(var i=num.length-1;i>0;i--){
          document.write(num.charAt(i));
       };
</script>
	</body>
</html>
